<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
        }
        body{
            display: flex;
            height: 100vh;
            flex-direction: column;
            justify-content: space-between;
        }
        header{
            height: 60px;
            line-height: 60px;
            text-align: center;
            font-size: 35px;
            color: #fff;
            background-color: blueviolet;
        }
        main{
            flex: 1;
            background-color: #ccc;
            
        }
        main ul {
            display: flex;
            flex-wrap: wrap;
            align-content: space-around;
        }
        main ul li{
            width: 25%;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background-clip: content-box;
            margin: 10px;
            background-color: pink;
        }
        footer{
            height: 60px;
            background-color: #ff6700;
            display: flex;
        }
        footer div{
            flex: 1;
            line-height: 60px;
            text-align: center;
            color: #fff;
            font-size: 20px;
        }
        footer div:nth-child(n+2) {
            border-left: 1px solid #ccc;
        }
    </style>
</head>
<body>
    <header>首页</header>
    <main>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
            <li>6</li>
            <li>7</li>
            <li>8</li>
            <li>9</li>
            <li>10</li>
        </ul>
    </main>
    <footer>
        <div>首页</div>
        <div>反馈</div>
        <div>购物车</div>
    </footer>
</body>
</html>